<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap 模板</title>
	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" charset="UTF-8" >
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <script src="bootstrap/js/jquery-1.11.1.min.js"></script>
      <script src="bootstrap/js/bootstrap.min.js"></script>
      <!--[if lt IE 9]>
         <script src="js/html5shiv.js"></script>
         <script src="js/respond.min.js"></script>
      <![endif]-->
   </head>
   <script>
   	$(function(){
   		var i = 1;
   		setInterval(function(){
   			$('.view').animate({'scrollLeft':618*i},500);
   			// $('.view').scrollLeft(618*i);
   			i = ++i%4;
   		},2000);
   	});
   </script>
   <style>
   body{padding-top:70px}
   img{display:block;float: left}
   .main{width:2472px}
   .view{width: 618px;border:2px solid;margin:auto;overflow: hidden}
   </style>
   <body>
   	<div class="view">
	   	<div class="main">
	   		<img src="images/nemo.jpg" />
	   		<img src="images/toystory.jpg" />
	   		<img src="images/up.jpg" />
	   		<img src="images/walle.jpg" />
	   	</div>
   	</div>
   </body>
</html>